<?php

namespace app\api\model;

use think\Model;
use traits\model\SoftDelete;

class CircleCommentReplies extends Model
{
    use SoftDelete;
    protected $autoWriteTimestamp = 'int';
    protected $deleteTime = 'deletetime';
    protected $createTime = 'createtime';
    protected $updateTime = 'updatetime';
    protected $hidden = ['deletetime', 'createtime', 'updatetime', 'online'];

    public function user()
    {
        return $this->hasOne(Users::class, 'id', 'user_id');
    }
}
